<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: esp8266/uart.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_cc2d49507704e901eabd8a82be491fc5.html">esp8266</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">uart.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="uart_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef _UART_H_</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define _UART_H_</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="uart_8h.html#a0508661f121639ffdee7de2353a0def2">   29</a></span>&#160;<span class="preprocessor">#define UART0   0</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="uart_8h.html#a8d69bf04d07af4fbbab5a8bd291f65ff">   30</a></span>&#160;<span class="preprocessor">#define UART1   1</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5">   32</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a6eeea76902d4b6897be064d86695dadd">   34</a></span>&#160;    <a class="code" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a6eeea76902d4b6897be064d86695dadd">ONE_STOP_BIT</a>             = 0x1,</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a856ac138e04e98917b2ba9d6ac6bcd34">   35</a></span>&#160;    <a class="code" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a856ac138e04e98917b2ba9d6ac6bcd34">TWO_STOP_BIT</a>             = 0x3</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;} <a class="code" href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5">UartStopBitsNum</a>;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="uart_8h.html#acb045cca45821ff8ef1e749914313198">   38</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="uart_8h.html#acb045cca45821ff8ef1e749914313198a4bffe960d7eae89d5b85412e4edfd453">   39</a></span>&#160;    <a class="code" href="uart_8h.html#acb045cca45821ff8ef1e749914313198a4bffe960d7eae89d5b85412e4edfd453">NO_PARITY</a> = 0,</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="uart_8h.html#acb045cca45821ff8ef1e749914313198ae19a2b096e346d54f83b83723a8af70d">   40</a></span>&#160;    <a class="code" href="uart_8h.html#acb045cca45821ff8ef1e749914313198ae19a2b096e346d54f83b83723a8af70d">EVEN_PARITY</a> = <a class="code" href="esp8266_2uart__register_8h.html#a03ce06034f763597b231b722bc1a9571">UART_PARITY_EN</a>,</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="uart_8h.html#acb045cca45821ff8ef1e749914313198afe2fed5b602e75007ad71639144b174b">   41</a></span>&#160;    <a class="code" href="uart_8h.html#acb045cca45821ff8ef1e749914313198afe2fed5b602e75007ad71639144b174b">ODD_PARITY</a> = <a class="code" href="esp8266_2uart__register_8h.html#a03ce06034f763597b231b722bc1a9571">UART_PARITY_EN</a> | <a class="code" href="esp8266_2uart__register_8h.html#a40f6d25d96053400829579d41169bb50">UART_PARITY</a></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;} <a class="code" href="uart_8h.html#acb045cca45821ff8ef1e749914313198">UartParityMode</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4">   44</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;{</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ad043d120861747b2af7c2bc59b24f404">   46</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ad043d120861747b2af7c2bc59b24f404">BIT_RATE_300</a> = 300,</div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2d5bdd7cd2bcabad3139fe238b507c1d">   47</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2d5bdd7cd2bcabad3139fe238b507c1d">BIT_RATE_600</a> = 600,</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a6c697c3ac2547a78613b866927dc5127">   48</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a6c697c3ac2547a78613b866927dc5127">BIT_RATE_1200</a> = 1200,</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a68e55ae34de0b0941218893ee29e5610">   49</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a68e55ae34de0b0941218893ee29e5610">BIT_RATE_2400</a> = 2400,</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a3e0ea717354c4382ec9c6ed6186cc281">   50</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a3e0ea717354c4382ec9c6ed6186cc281">BIT_RATE_4800</a> = 4800,</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a229729a4b6a9fd03652d40bbc8de4077">   51</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a229729a4b6a9fd03652d40bbc8de4077">BIT_RATE_9600</a>   = 9600,</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a530955746b4cc1a29cb53197000205a0">   52</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a530955746b4cc1a29cb53197000205a0">BIT_RATE_19200</a>  = 19200,</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4aef293563a7d97768b081a620d26373c4">   53</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4aef293563a7d97768b081a620d26373c4">BIT_RATE_38400</a>  = 38400,</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2ee133267213c58c96eef6ade6b3c084">   54</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2ee133267213c58c96eef6ade6b3c084">BIT_RATE_57600</a>  = 57600,</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a84302b884c6664030c39fdfaa04280a9">   55</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a84302b884c6664030c39fdfaa04280a9">BIT_RATE_74880</a>  = 74880,</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ace379f00ef7ff498cbee2a444d896e63">   56</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ace379f00ef7ff498cbee2a444d896e63">BIT_RATE_115200</a> = 115200,</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a7fa0bd72210bce17149d35bd48fb106e">   57</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a7fa0bd72210bce17149d35bd48fb106e">BIT_RATE_230400</a> = 230400,</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a0cc50968083a7368cd712e9067172f71">   58</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a0cc50968083a7368cd712e9067172f71">BIT_RATE_460800</a> = 460800,</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a62b31a000b09ec4376fa85a2c52f5436">   59</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a62b31a000b09ec4376fa85a2c52f5436">BIT_RATE_921600</a> = 921600,</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ac6d59bff4c992cd808e9dded3f54f25b">   60</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ac6d59bff4c992cd808e9dded3f54f25b">BIT_RATE_1843200</a> = 1843200,</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4af4a24782cdb75f6c2dcf6f4c77a3b053">   61</a></span>&#160;    <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4af4a24782cdb75f6c2dcf6f4c77a3b053">BIT_RATE_3686400</a> = 3686400,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;} <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4">UartBaudRate</a>;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">#ifndef UART_FIFO_LEN</span></div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="uart_8h.html#a653fc44b41db6efb3884c15ce8d6c30e">   65</a></span>&#160;<span class="preprocessor">    #define UART_FIFO_LEN  128  </span><span class="comment">/* define the tx fifo length */</span><span class="preprocessor"></span></div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="preprocessor">#ifndef FUNC_U0TXD</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="uart_8h.html#ae18547ea6266e7165ecbe4f07ac2bbf1">   69</a></span>&#160;<span class="preprocessor">    #define FUNC_U0TXD    0</span></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#ifndef FUNC_U0RXD</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="uart_8h.html#acb983a46a8eb86eae3df40a82eccaed6">   73</a></span>&#160;<span class="preprocessor">    #define FUNC_U0RXD    0</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment">/* uart.c */</span></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#ae08356fea716912edfef1013171b24ba">uart_rx_enable</a> ( uint8 uart_no );</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a4c32ce5693fc8c1a40244b5cc82e796e">uart_rx_disable</a> ( uint8 uart_no );</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a9fee6d0362cbec0ae882acb55d3a825f">uart_tx_enable</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no );</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a87198ab19fb4f97a978baf08b478d150">uart_tx_disable</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no );</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a69f8feef88b9921367f37e8db445eeaf">tx_fifo_flush</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a6b9147fc5ffaf0a602cc60a8addb8a38">rx_fifo_flush</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a6f8397ebf08ae984ed48144d0287a048">tx_fifo_used</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a3c0f172370540e0d1840c415c2c7b661">tx_fifo_free</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a50e81b3a1433d1947bdff1b9bdf425d3">tx_fifo_empty</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a09c378ce1610cb5e63469a4ee6813de2">rx_fifo_used</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#aa59d5d55b7cd6551d97ef6af22949c82">rx_fifo_free</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a3ffd1f20ba2ca3ef0894473091b25012">rx_fifo_empty</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#ae0c0e0aa888920f223867fa541b068ac">tx_fifo_putb</a> ( <span class="keywordtype">int</span> uart_no , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> c );</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a41c7b573c10fdd3aadc72669f96c2e71">rx_fifo_getb</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a6658637d750ec2e2366ac3881dbd9f6e">tx_fifo_write</a> ( <span class="keywordtype">int</span> uart_no , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *buf , <span class="keywordtype">int</span> size );</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a5ee039ccb34468de12203a7027fee1ce">rx_fifo_read</a> ( <span class="keywordtype">int</span> uart_no , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *buf , <span class="keywordtype">int</span> size );</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;LOCAL <a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a5d37288e478d3aefe796f405d90e2c06">uart_putb</a> ( uint8 uart_no , uint8 data );</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;LOCAL <a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a385bdf5aba0beedc8862cb7afff7fee7">uart_getb</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#aad52b616aa1f07c5a59a5ddb6be602dc">uart_putc</a> ( uint8 uart_no , <span class="keywordtype">char</span> c );</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#adf42ba60e6a57087df07a521240569c7">uart_getc</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#ad5837c0512e852837f615c22769355c9">uart0_putc</a> ( uint8 c );</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a38d52679a02040deeb1484f6880ee1fd">uart0_getc</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a68627c49cc4901c400c82adeea5a6b1d">uart1_putc</a> ( uint8 c );</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a148e8cd7cbfcbbd80ad1220f1390e6b8">uart1_getc</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a735a90ff2c030a454e0e08d1cd4d79e9">uart_flush</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no );</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;LOCAL <a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">int</span> <a class="code" href="uart_8h.html#acc12e198ec89c68b7f51d99a4924ed28">uart_queue_getb</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no );</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="uart_8h.html#ad8e620f0a708b7e3d7ba1aaa623f7692">uart_queue_getc</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no );</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="uart_8h.html#a7a2b340567e2b891eaf85a00de17d62c">uart0_queue_getc</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> <a class="code" href="uart_8h.html#abefd5e7ba3ed2b292bc9ac6d842773cb">uart1_queue_getc</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#aac4c92fd5bb979408d209ca8e7c3865c">uart_task</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;LOCAL <a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a08addb9b5aa3cbe9dbba1c0c0242a6e6">uart_queue_putb</a> ( uint8 uart_no , uint8 data );</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a7d280257d3443fa5f3d6bb7007e2a543">uart_queue_putc</a> ( <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> uart_no , <span class="keywordtype">char</span> c );</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#acf7576240a5fa89eff860522a060c907">uart0_queue_putc</a> ( <span class="keywordtype">char</span> c );</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a590b4e9b5fbf412cbad4a6fcb36c3e2d">uart1_queue_putc</a> ( <span class="keywordtype">char</span> c );</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="keywordtype">int</span> <a class="code" href="uart_8h.html#adba60d396ad1ae85a31880b05758e460">kbhiteol</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keywordtype">int</span> <a class="code" href="uart_8h.html#a27dccd1929734deb5d318a0cf44bd7c5">kbhit</a> ( <span class="keywordtype">int</span> uart_no );</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="keywordtype">void</span> <a class="code" href="uart_8h.html#aa018dc93fd77400560f0ab7e8d78f59a">uart_callback</a> ( <span class="keywordtype">void</span> *p );</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a83db8ea8db21280f74e2546414fc80f7">UART_SetPrintPort</a> ( uint8 uart_no );</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#afde4532b11b79411c904be3b2672c5e8">uart_config</a> ( uint8 uart_no , <a class="code" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> baud , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> data_bits , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> stop_bits , <a class="code" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> parity );</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#a5afb95571d79d939651ef59768fde839">uart_init</a> ( <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4">UartBaudRate</a> uart0_br , <a class="code" href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4">UartBaudRate</a> uart1_br );</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <span class="keywordtype">void</span> <a class="code" href="uart_8h.html#aeb10f06d9b9e69150d7cb2a760163ad7">uart_reattach</a> ( <span class="keywordtype">void</span> );</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="uart_8h_html_a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a6eeea76902d4b6897be064d86695dadd"><div class="ttname"><a href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a6eeea76902d4b6897be064d86695dadd">ONE_STOP_BIT</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00034">uart.h:34</a></div></div>
<div class="ttc" id="uart_8h_html_adf42ba60e6a57087df07a521240569c7"><div class="ttname"><a href="uart_8h.html#adf42ba60e6a57087df07a521240569c7">uart_getc</a></div><div class="ttdeci">MEMSPACE int uart_getc(int uart_no)</div><div class="ttdoc">Read a byte from a uart with NL to CR/NL conversion Note: This function waits/blocks util the read ca...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00337">uart.c:337</a></div></div>
<div class="ttc" id="uart_8h_html_a6b9147fc5ffaf0a602cc60a8addb8a38"><div class="ttname"><a href="uart_8h.html#a6b9147fc5ffaf0a602cc60a8addb8a38">rx_fifo_flush</a></div><div class="ttdeci">void rx_fifo_flush(int uart_no)</div><div class="ttdoc">Flush receive fifo for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00105">uart.c:105</a></div></div>
<div class="ttc" id="uart_8h_html_acb045cca45821ff8ef1e749914313198afe2fed5b602e75007ad71639144b174b"><div class="ttname"><a href="uart_8h.html#acb045cca45821ff8ef1e749914313198afe2fed5b602e75007ad71639144b174b">ODD_PARITY</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00041">uart.h:41</a></div></div>
<div class="ttc" id="uart_8h_html_a27dccd1929734deb5d318a0cf44bd7c5"><div class="ttname"><a href="uart_8h.html#a27dccd1929734deb5d318a0cf44bd7c5">kbhit</a></div><div class="ttdeci">int kbhit(int uart_no)</div><div class="ttdoc">Has ANY character been read in stdin. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00585">uart.c:585</a></div></div>
<div class="ttc" id="uart_8h_html_a5d37288e478d3aefe796f405d90e2c06"><div class="ttname"><a href="uart_8h.html#a5d37288e478d3aefe796f405d90e2c06">uart_putb</a></div><div class="ttdeci">LOCAL MEMSPACE int uart_putb(uint8 uart_no, uint8 data)</div><div class="ttdoc">Polled Blocking I/O functions that poll. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00289">uart.c:289</a></div></div>
<div class="ttc" id="uart_8h_html_a38d52679a02040deeb1484f6880ee1fd"><div class="ttname"><a href="uart_8h.html#a38d52679a02040deeb1484f6880ee1fd">uart0_getc</a></div><div class="ttdeci">MEMSPACE int uart0_getc(void)</div><div class="ttdoc">Read a byte from uart0 with NL to CR/NL conversion Note: This function waits/blocks util the read can...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00369">uart.c:369</a></div></div>
<div class="ttc" id="uart_8h_html_a590b4e9b5fbf412cbad4a6fcb36c3e2d"><div class="ttname"><a href="uart_8h.html#a590b4e9b5fbf412cbad4a6fcb36c3e2d">uart1_queue_putc</a></div><div class="ttdeci">MEMSPACE void uart1_queue_putc(char c)</div></div>
<div class="ttc" id="uart_8h_html_a69f8feef88b9921367f37e8db445eeaf"><div class="ttname"><a href="uart_8h.html#a69f8feef88b9921367f37e8db445eeaf">tx_fifo_flush</a></div><div class="ttdeci">void tx_fifo_flush(int uart_no)</div><div class="ttdoc">Flush transmit fifo for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00094">uart.c:94</a></div></div>
<div class="ttc" id="uart_8h_html_ad5837c0512e852837f615c22769355c9"><div class="ttname"><a href="uart_8h.html#ad5837c0512e852837f615c22769355c9">uart0_putc</a></div><div class="ttdeci">MEMSPACE int uart0_putc(uint8 c)</div><div class="ttdoc">Write a byte to uart0 with NL to CR/NL conversion Note: This function waits/blocks util the write can...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00358">uart.c:358</a></div></div>
<div class="ttc" id="uart_8h_html_aad52b616aa1f07c5a59a5ddb6be602dc"><div class="ttname"><a href="uart_8h.html#aad52b616aa1f07c5a59a5ddb6be602dc">uart_putc</a></div><div class="ttdeci">MEMSPACE int uart_putc(uint8 uart_no, char c)</div><div class="ttdoc">Write a byte from a uart with NL to CR/NL conversion Note: This function waits/blocks util the write ...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00323">uart.c:323</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a62b31a000b09ec4376fa85a2c52f5436"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a62b31a000b09ec4376fa85a2c52f5436">BIT_RATE_921600</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00059">uart.h:59</a></div></div>
<div class="ttc" id="uart_8h_html_a7d280257d3443fa5f3d6bb7007e2a543"><div class="ttname"><a href="uart_8h.html#a7d280257d3443fa5f3d6bb7007e2a543">uart_queue_putc</a></div><div class="ttdeci">MEMSPACE void uart_queue_putc(uint8_t uart_no, char c)</div></div>
<div class="ttc" id="uart_8h_html_a50e81b3a1433d1947bdff1b9bdf425d3"><div class="ttname"><a href="uart_8h.html#a50e81b3a1433d1947bdff1b9bdf425d3">tx_fifo_empty</a></div><div class="ttdeci">MEMSPACE int tx_fifo_empty(int uart_no)</div><div class="ttdoc">Test if the transmit fifo is empty. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00143">uart.c:143</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a229729a4b6a9fd03652d40bbc8de4077"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a229729a4b6a9fd03652d40bbc8de4077">BIT_RATE_9600</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00051">uart.h:51</a></div></div>
<div class="ttc" id="uart_8h_html_a5afb95571d79d939651ef59768fde839"><div class="ttname"><a href="uart_8h.html#a5afb95571d79d939651ef59768fde839">uart_init</a></div><div class="ttdeci">MEMSPACE void uart_init(UartBaudRate uart0_br, UartBaudRate uart1_br)</div><div class="ttdoc">initialize uart0 and uart1 Defaults: 8 = data bits, 1 = stop bits, no parity </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00773">uart.c:773</a></div></div>
<div class="ttc" id="uart_8h_html_ae08356fea716912edfef1013171b24ba"><div class="ttname"><a href="uart_8h.html#ae08356fea716912edfef1013171b24ba">uart_rx_enable</a></div><div class="ttdeci">void uart_rx_enable(uint8 uart_no)</div><div class="ttdoc">Enable receive interrupts for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00052">uart.c:52</a></div></div>
<div class="ttc" id="uart_8h_html_aeb10f06d9b9e69150d7cb2a760163ad7"><div class="ttname"><a href="uart_8h.html#aeb10f06d9b9e69150d7cb2a760163ad7">uart_reattach</a></div><div class="ttdeci">MEMSPACE void uart_reattach(void)</div><div class="ttdoc">Reinitialize uart0 and uart1 calls uart_init() </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00822">uart.c:822</a></div></div>
<div class="ttc" id="send_8c_html_a435d1572bf3f880d55459d9805097f62"><div class="ttname"><a href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a></div><div class="ttdeci">unsigned int uint32_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00019">send.c:19</a></div></div>
<div class="ttc" id="uart_8h_html_acf7576240a5fa89eff860522a060c907"><div class="ttname"><a href="uart_8h.html#acf7576240a5fa89eff860522a060c907">uart0_queue_putc</a></div><div class="ttdeci">MEMSPACE void uart0_queue_putc(char c)</div></div>
<div class="ttc" id="uart_8h_html_abefd5e7ba3ed2b292bc9ac6d842773cb"><div class="ttname"><a href="uart_8h.html#abefd5e7ba3ed2b292bc9ac6d842773cb">uart1_queue_getc</a></div><div class="ttdeci">MEMSPACE uint8_t uart1_queue_getc(void)</div></div>
<div class="ttc" id="uart_8h_html_a148e8cd7cbfcbbd80ad1220f1390e6b8"><div class="ttname"><a href="uart_8h.html#a148e8cd7cbfcbbd80ad1220f1390e6b8">uart1_getc</a></div><div class="ttdeci">MEMSPACE int uart1_getc(void)</div><div class="ttdoc">Read a byte from uart1 with NL to CR/NL conversion Note: This function waits/blocks util the read can...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00393">uart.c:393</a></div></div>
<div class="ttc" id="uart_8h_html_a735a90ff2c030a454e0e08d1cd4d79e9"><div class="ttname"><a href="uart_8h.html#a735a90ff2c030a454e0e08d1cd4d79e9">uart_flush</a></div><div class="ttdeci">MEMSPACE void uart_flush(uint8_t uart_no)</div><div class="ttdoc">Flush TX buffer Note: This function waits/blocks util the write happen. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00406">uart.c:406</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a3e0ea717354c4382ec9c6ed6186cc281"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a3e0ea717354c4382ec9c6ed6186cc281">BIT_RATE_4800</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00050">uart.h:50</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a68e55ae34de0b0941218893ee29e5610"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a68e55ae34de0b0941218893ee29e5610">BIT_RATE_2400</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00049">uart.h:49</a></div></div>
<div class="ttc" id="uart_8h_html_a4c32ce5693fc8c1a40244b5cc82e796e"><div class="ttname"><a href="uart_8h.html#a4c32ce5693fc8c1a40244b5cc82e796e">uart_rx_disable</a></div><div class="ttdeci">void uart_rx_disable(uint8 uart_no)</div><div class="ttdoc">Disable receive interrupts for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00062">uart.c:62</a></div></div>
<div class="ttc" id="uart_8h_html_ae0c0e0aa888920f223867fa541b068ac"><div class="ttname"><a href="uart_8h.html#ae0c0e0aa888920f223867fa541b068ac">tx_fifo_putb</a></div><div class="ttdeci">MEMSPACE int tx_fifo_putb(int uart_no, uint8_t c)</div><div class="ttdoc">Add a byte to the trasmit fifo We assume that tx_fifo_free() was called! </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00199">uart.c:199</a></div></div>
<div class="ttc" id="uart_8h_html_a6658637d750ec2e2366ac3881dbd9f6e"><div class="ttname"><a href="uart_8h.html#a6658637d750ec2e2366ac3881dbd9f6e">tx_fifo_write</a></div><div class="ttdeci">MEMSPACE int tx_fifo_write(int uart_no, uint8_t *buf, int size)</div><div class="ttdoc">Write a data buffer to the transmit fifo Note: This function does not wait/block util there is enough...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00237">uart.c:237</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4af4a24782cdb75f6c2dcf6f4c77a3b053"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4af4a24782cdb75f6c2dcf6f4c77a3b053">BIT_RATE_3686400</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00061">uart.h:61</a></div></div>
<div class="ttc" id="uart_8h_html_a83db8ea8db21280f74e2546414fc80f7"><div class="ttname"><a href="uart_8h.html#a83db8ea8db21280f74e2546414fc80f7">UART_SetPrintPort</a></div><div class="ttdeci">MEMSPACE void UART_SetPrintPort(uint8 uart_no)</div><div class="ttdoc">Install debug uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00682">uart.c:682</a></div></div>
<div class="ttc" id="uart_8h_html_a9fee6d0362cbec0ae882acb55d3a825f"><div class="ttname"><a href="uart_8h.html#a9fee6d0362cbec0ae882acb55d3a825f">uart_tx_enable</a></div><div class="ttdeci">void uart_tx_enable(uint8_t uart_no)</div><div class="ttdoc">Enable transmit interrupts for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00072">uart.c:72</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a7fa0bd72210bce17149d35bd48fb106e"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a7fa0bd72210bce17149d35bd48fb106e">BIT_RATE_230400</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00057">uart.h:57</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4">UartBaudRate</a></div><div class="ttdeci">UartBaudRate</div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00044">uart.h:44</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4ad043d120861747b2af7c2bc59b24f404"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ad043d120861747b2af7c2bc59b24f404">BIT_RATE_300</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00046">uart.h:46</a></div></div>
<div class="ttc" id="uart_8h_html_a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a856ac138e04e98917b2ba9d6ac6bcd34"><div class="ttname"><a href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5a856ac138e04e98917b2ba9d6ac6bcd34">TWO_STOP_BIT</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00035">uart.h:35</a></div></div>
<div class="ttc" id="uart_8h_html_acb045cca45821ff8ef1e749914313198"><div class="ttname"><a href="uart_8h.html#acb045cca45821ff8ef1e749914313198">UartParityMode</a></div><div class="ttdeci">UartParityMode</div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00038">uart.h:38</a></div></div>
<div class="ttc" id="uart_8h_html_a41c7b573c10fdd3aadc72669f96c2e71"><div class="ttname"><a href="uart_8h.html#a41c7b573c10fdd3aadc72669f96c2e71">rx_fifo_getb</a></div><div class="ttdeci">MEMSPACE int rx_fifo_getb(int uart_no)</div><div class="ttdoc">Remove a byte from the receive fifo We assume that rx_fifo_used() was called! </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00217">uart.c:217</a></div></div>
<div class="ttc" id="uart_8h_html_a3ffd1f20ba2ca3ef0894473091b25012"><div class="ttname"><a href="uart_8h.html#a3ffd1f20ba2ca3ef0894473091b25012">rx_fifo_empty</a></div><div class="ttdeci">MEMSPACE int rx_fifo_empty(int uart_no)</div><div class="ttdoc">Test if the receive fifo is empty. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00182">uart.c:182</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a2d5bdd7cd2bcabad3139fe238b507c1d"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2d5bdd7cd2bcabad3139fe238b507c1d">BIT_RATE_600</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00047">uart.h:47</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a530955746b4cc1a29cb53197000205a0"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a530955746b4cc1a29cb53197000205a0">BIT_RATE_19200</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00052">uart.h:52</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a6c697c3ac2547a78613b866927dc5127"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a6c697c3ac2547a78613b866927dc5127">BIT_RATE_1200</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00048">uart.h:48</a></div></div>
<div class="ttc" id="uart_8h_html_a7a2b340567e2b891eaf85a00de17d62c"><div class="ttname"><a href="uart_8h.html#a7a2b340567e2b891eaf85a00de17d62c">uart0_queue_getc</a></div><div class="ttdeci">MEMSPACE uint8_t uart0_queue_getc(void)</div></div>
<div class="ttc" id="uart_8h_html_acc12e198ec89c68b7f51d99a4924ed28"><div class="ttname"><a href="uart_8h.html#acc12e198ec89c68b7f51d99a4924ed28">uart_queue_getb</a></div><div class="ttdeci">LOCAL MEMSPACE int uart_queue_getb(uint8_t uart_no)</div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a0cc50968083a7368cd712e9067172f71"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a0cc50968083a7368cd712e9067172f71">BIT_RATE_460800</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00058">uart.h:58</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a84302b884c6664030c39fdfaa04280a9"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a84302b884c6664030c39fdfaa04280a9">BIT_RATE_74880</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00055">uart.h:55</a></div></div>
<div class="ttc" id="uart_8h_html_a3c0f172370540e0d1840c415c2c7b661"><div class="ttname"><a href="uart_8h.html#a3c0f172370540e0d1840c415c2c7b661">tx_fifo_free</a></div><div class="ttdeci">MEMSPACE int tx_fifo_free(int uart_no)</div><div class="ttdoc">Get the number of bytes free in transmit fifo. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00130">uart.c:130</a></div></div>
<div class="ttc" id="uart_8h_html_a87198ab19fb4f97a978baf08b478d150"><div class="ttname"><a href="uart_8h.html#a87198ab19fb4f97a978baf08b478d150">uart_tx_disable</a></div><div class="ttdeci">void uart_tx_disable(uint8_t uart_no)</div><div class="ttdoc">Disable transmit interrupts for a uart. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00082">uart.c:82</a></div></div>
<div class="ttc" id="uart_8h_html_adba60d396ad1ae85a31880b05758e460"><div class="ttname"><a href="uart_8h.html#adba60d396ad1ae85a31880b05758e460">kbhiteol</a></div><div class="ttdeci">int kbhiteol(int uart_no)</div><div class="ttdoc">Has an EOL been read on stdin ? </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00572">uart.c:572</a></div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="uart_8h_html_a09c378ce1610cb5e63469a4ee6813de2"><div class="ttname"><a href="uart_8h.html#a09c378ce1610cb5e63469a4ee6813de2">rx_fifo_used</a></div><div class="ttdeci">MEMSPACE int rx_fifo_used(int uart_no)</div><div class="ttdoc">Get the number of bytes used in receive fifo. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00155">uart.c:155</a></div></div>
<div class="ttc" id="uart_8h_html_aa59d5d55b7cd6551d97ef6af22949c82"><div class="ttname"><a href="uart_8h.html#aa59d5d55b7cd6551d97ef6af22949c82">rx_fifo_free</a></div><div class="ttdeci">MEMSPACE int rx_fifo_free(int uart_no)</div><div class="ttdoc">Get the number of bytes free in receive fifo. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00168">uart.c:168</a></div></div>
<div class="ttc" id="uart_8h_html_a0ecb1f01cc124cfef8bb7dbfe6c9c1d5"><div class="ttname"><a href="uart_8h.html#a0ecb1f01cc124cfef8bb7dbfe6c9c1d5">UartStopBitsNum</a></div><div class="ttdeci">UartStopBitsNum</div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00032">uart.h:32</a></div></div>
<div class="ttc" id="esp8266_2uart__register_8h_html_a40f6d25d96053400829579d41169bb50"><div class="ttname"><a href="esp8266_2uart__register_8h.html#a40f6d25d96053400829579d41169bb50">UART_PARITY</a></div><div class="ttdeci">#define UART_PARITY</div><div class="ttdef"><b>Definition:</b> <a href="esp8266_2uart__register_8h_source.html#l00124">uart_register.h:124</a></div></div>
<div class="ttc" id="esp8266_2uart__register_8h_html_a03ce06034f763597b231b722bc1a9571"><div class="ttname"><a href="esp8266_2uart__register_8h.html#a03ce06034f763597b231b722bc1a9571">UART_PARITY_EN</a></div><div class="ttdeci">#define UART_PARITY_EN</div><div class="ttdef"><b>Definition:</b> <a href="esp8266_2uart__register_8h_source.html#l00121">uart_register.h:121</a></div></div>
<div class="ttc" id="uart_8h_html_a5ee039ccb34468de12203a7027fee1ce"><div class="ttname"><a href="uart_8h.html#a5ee039ccb34468de12203a7027fee1ce">rx_fifo_read</a></div><div class="ttdeci">MEMSPACE int rx_fifo_read(int uart_no, uint8_t *buf, int size)</div><div class="ttdoc">Read a data buffer from the receive fifo Note: This function does not wait/block util there is enough...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00264">uart.c:264</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4a2ee133267213c58c96eef6ade6b3c084"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4a2ee133267213c58c96eef6ade6b3c084">BIT_RATE_57600</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00054">uart.h:54</a></div></div>
<div class="ttc" id="uart_8h_html_aac4c92fd5bb979408d209ca8e7c3865c"><div class="ttname"><a href="uart_8h.html#aac4c92fd5bb979408d209ca8e7c3865c">uart_task</a></div><div class="ttdeci">void uart_task(void)</div></div>
<div class="ttc" id="uart_8h_html_a385bdf5aba0beedc8862cb7afff7fee7"><div class="ttname"><a href="uart_8h.html#a385bdf5aba0beedc8862cb7afff7fee7">uart_getb</a></div><div class="ttdeci">LOCAL MEMSPACE int uart_getb(int uart_no)</div><div class="ttdoc">Read a byte from a uart Note: This function waits/blocks util the read can happen. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00304">uart.c:304</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4ace379f00ef7ff498cbee2a444d896e63"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ace379f00ef7ff498cbee2a444d896e63">BIT_RATE_115200</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00056">uart.h:56</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4ac6d59bff4c992cd808e9dded3f54f25b"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4ac6d59bff4c992cd808e9dded3f54f25b">BIT_RATE_1843200</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00060">uart.h:60</a></div></div>
<div class="ttc" id="uart_8h_html_aa018dc93fd77400560f0ab7e8d78f59a"><div class="ttname"><a href="uart_8h.html#aa018dc93fd77400560f0ab7e8d78f59a">uart_callback</a></div><div class="ttdeci">void uart_callback(void *p)</div><div class="ttdoc">Uart interrupt callback function Process all receive and transmit events here. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00604">uart.c:604</a></div></div>
<div class="ttc" id="send_8c_html_aba7bc1797add20fe3efdf37ced1182c5"><div class="ttname"><a href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a></div><div class="ttdeci">unsigned char uint8_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00017">send.c:17</a></div></div>
<div class="ttc" id="uart_8h_html_acb045cca45821ff8ef1e749914313198ae19a2b096e346d54f83b83723a8af70d"><div class="ttname"><a href="uart_8h.html#acb045cca45821ff8ef1e749914313198ae19a2b096e346d54f83b83723a8af70d">EVEN_PARITY</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00040">uart.h:40</a></div></div>
<div class="ttc" id="uart_8h_html_a6f8397ebf08ae984ed48144d0287a048"><div class="ttname"><a href="uart_8h.html#a6f8397ebf08ae984ed48144d0287a048">tx_fifo_used</a></div><div class="ttdeci">MEMSPACE int tx_fifo_used(int uart_no)</div><div class="ttdoc">Get the number of bytes used in transmit fifo. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00118">uart.c:118</a></div></div>
<div class="ttc" id="uart_8h_html_a9aa1e56362027f49bfbe4378b8c889a4aef293563a7d97768b081a620d26373c4"><div class="ttname"><a href="uart_8h.html#a9aa1e56362027f49bfbe4378b8c889a4aef293563a7d97768b081a620d26373c4">BIT_RATE_38400</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00053">uart.h:53</a></div></div>
<div class="ttc" id="uart_8h_html_a68627c49cc4901c400c82adeea5a6b1d"><div class="ttname"><a href="uart_8h.html#a68627c49cc4901c400c82adeea5a6b1d">uart1_putc</a></div><div class="ttdeci">MEMSPACE int uart1_putc(uint8 c)</div><div class="ttdoc">Write a byte to uart1 with NL to CR/NL conversion Note: This function waits/blocks util the write can...</div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00382">uart.c:382</a></div></div>
<div class="ttc" id="uart_8h_html_a08addb9b5aa3cbe9dbba1c0c0242a6e6"><div class="ttname"><a href="uart_8h.html#a08addb9b5aa3cbe9dbba1c0c0242a6e6">uart_queue_putb</a></div><div class="ttdeci">LOCAL MEMSPACE void uart_queue_putb(uint8 uart_no, uint8 data)</div></div>
<div class="ttc" id="uart_8h_html_ad8e620f0a708b7e3d7ba1aaa623f7692"><div class="ttname"><a href="uart_8h.html#ad8e620f0a708b7e3d7ba1aaa623f7692">uart_queue_getc</a></div><div class="ttdeci">MEMSPACE uint8_t uart_queue_getc(uint8_t uart_no)</div></div>
<div class="ttc" id="uart_8h_html_acb045cca45821ff8ef1e749914313198a4bffe960d7eae89d5b85412e4edfd453"><div class="ttname"><a href="uart_8h.html#acb045cca45821ff8ef1e749914313198a4bffe960d7eae89d5b85412e4edfd453">NO_PARITY</a></div><div class="ttdef"><b>Definition:</b> <a href="uart_8h_source.html#l00039">uart.h:39</a></div></div>
<div class="ttc" id="uart_8h_html_afde4532b11b79411c904be3b2672c5e8"><div class="ttname"><a href="uart_8h.html#afde4532b11b79411c904be3b2672c5e8">uart_config</a></div><div class="ttdeci">MEMSPACE void uart_config(uint8 uart_no, uint32_t baud, uint8_t data_bits, uint8_t stop_bits, uint8_t parity)</div><div class="ttdoc">Uart configuration, baud rate, data and stop bits, parity. </div><div class="ttdef"><b>Definition:</b> <a href="uart_8c_source.html#l00714">uart.c:714</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
